#include "Timer.h"

namespace Lame3d
{
	Timer::Timer()
			: lastTime(SDL_GetTicks())
	{
	}
	
	Timer::~Timer()
	{
	}
	
	int Timer::Millis()
	{
		Uint32 eTime = SDL_GetTicks() - lastTime;
		lastTime = SDL_GetTicks();
		return eTime;
	}
	
	float Timer::Seconds()
	{
		return float(Millis())/1000.0;
	}
}
